<%-- 
    Document   : A4
    Created on : 2014/8/5, 下午 03:53:02
    Author     : Yu
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%!
int x=5;

String sayHi(String name)
{
  return name+"Hi!";    
 }
%>

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Hello World!</h1>
        
        x=<%=  x  %><br>
        <%= sayHi("YU~~") %><br>
        <%= sayHi("Sally~~") %><br>
      
    </body>
</html>
